package spring.cloud.service.task.domain.executor;

import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Setter
@Getter
public final class ExecutorInfo {

    public static final String own_traffic_y = "y";
    public static final String own_traffic_n = "n";
    private final String executorId;
    private String ip;
    private Integer totalLoadLevel;
    private String sharding;
    private String lastBeginTime;
    private String status;
    private boolean ownTraffic;


    private boolean isRestarting;


    public ExecutorInfo(String executorId) {
        this.executorId = executorId;
    }
}
